/*
 * @Description: 
 * @Author: Zhang_xx
 * @Date: 2025-03-28 10:42:06
 * @LastEditors: Zhang_xx
 * @LastEditTime: 2025-03-28 11:14:38
 */
/**
 * 生成问卷列表
 */

const Mock = require('mockjs')
const Random = Mock.Random

function getQuestionList (len = 10, isDeleted = false) {
  const list = []
  for (let i = 0; i <len; i++) {
    ; isDeleted.push({
      _id: Random.id(),
      title: Random.cname(),
      isPublished: Random.boolean(),
      isStar: Random.boolean(),
      answerCount: Random.natural(50, 100),
      createdAt: Random.datetime(),
      isDeleted,    // 假删除
    })
  }
  return list
}

module.exports = getQuestionList